/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exception;

/**
 *
 * @author FM & KB
 */
public class NbParametresIncorrectException extends Throwable {
    
    private int nbParamAttendus;
    private int nbParamEnvoyes;
    
    public NbParametresIncorrectException(int nbParamAttendus,int nbParamEnvoyes){
        this.nbParamAttendus = nbParamAttendus;
        this.nbParamEnvoyes = nbParamEnvoyes;
    }
    
    public String getMessage(){
        return "Erreur : Nombre de paramètres incorrect. " + nbParamAttendus +
                " paramètre(s) attendu(s) et " + nbParamEnvoyes +" paramètre(s) recu(s).\n";
    }
}
